const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,

  userInfo: state => state.user.userInfo,
  token: state => state.user.token,
  routes: state => state.user.routes,

  id: state => state.user.userInfo.id,
  username: state => state.user.userInfo.username,
  nickname: state => state.user.userInfo.nickname
}
export default getters
